package com.ce.pms.occupation.model;

// Generated 2008-12-24 13:41:51 by Hibernate Tools 3.2.0.b9

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:物品归还 关联数据表:OM_THING_GIVEBACK
 *
 * @author yandawei
 * @CreateDate:2008-12-24
 */
@Entity
@Table(name = "OM_THING_GIVEBACK")
public class ThingGivebackDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "THING_GIVEBACK_ID", unique = true, nullable = false)
	private Long keyword;

	/**
	 * 物品委托对象
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "THING_ENTRUST_ID")
	private ThingEntrustDO thingEntrust;

	/**
	 * 物品归还人
	 */
	@Column(name = "GIVEBACK_MAN", nullable = false, length = 36)
	private String givebackMan;

	/**
	 * 归还日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name = "GIVEBACK_DATE", nullable = false, length = 19)
	private Date givebackDate;

	/**
	 * 接受人
	 */
	@Column(name = "ACCEPTER", nullable = false, length = 36)
	private String accepter;

	/**
	 * 归还描述
	 */
	@Column(name = "DESCRIPTION", length = 200)
	private String description;

	public ThingGivebackDO() {
	}

	public ThingGivebackDO(Long keyword) {
		super();
		this.keyword = keyword;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public ThingEntrustDO getThingEntrust() {
		return thingEntrust;
	}

	public void setThingEntrust(ThingEntrustDO thingEntrust) {
		this.thingEntrust = thingEntrust;
	}

	public String getGivebackMan() {
		return this.givebackMan;
	}

	public void setGivebackMan(String givebackMan) {
		this.givebackMan = givebackMan;
	}

	public Date getGivebackDate() {
		return this.givebackDate;
	}

	public void setGivebackDate(Date givebackDate) {
		this.givebackDate = givebackDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getAccepter() {
		return accepter;
	}

	public void setAccepter(String accepter) {
		this.accepter = accepter;
	}

}
